package com.gopay.common.domain.riskcontrol;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.gopay.common.domain.BaseEntity;


/**
 * The persistent class for the RC_COM_RULE database table.
 * 
 */
@Entity
@Table(name="RC_COM_RULE")
public class RcComRule extends BaseEntity {
	private static final long serialVersionUID = 1L;

	@Id
	//@SequenceGenerator(name="RC_COM_RULE_ID_GENERATOR", sequenceName="RC_COM_RULE_SEQ")
	//@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="RC_COM_RULE_ID_GENERATOR")
	private long id;

	private String code;

	@Column(name="CREATE_OPER_ID")
	private String createOperId;

	@Column(name="CREATED_TS")
	private Date createdTs;

	@Column(name="DEAL_TYPE")
	private String dealType;

	@Column(name="LAST_UPD_OPER_ID")
	private String lastUpdOperId;

	@Column(name="LAST_UPD_TS")
	private Date lastUpdTs;

	private String name;

	private String stat;

	@Column(name="\"VERSION\"")
	private Integer version;

	public RcComRule() {
	}

	public long getId() {
		return this.id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getCode() {
		return this.code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getCreateOperId() {
		return this.createOperId;
	}

	public void setCreateOperId(String createOperId) {
		this.createOperId = createOperId;
	}

	

	public String getDealType() {
		return this.dealType;
	}

	public void setDealType(String dealType) {
		this.dealType = dealType;
	}

	public String getLastUpdOperId() {
		return this.lastUpdOperId;
	}

	public void setLastUpdOperId(String lastUpdOperId) {
		this.lastUpdOperId = lastUpdOperId;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getStat() {
		return this.stat;
	}

	public void setStat(String stat) {
		this.stat = stat;
	}

	public Integer getVersion() {
		return this.version;
	}

	public void setVersion(Integer version) {
		this.version = version;
	}

    public Date getCreatedTs() {
        return createdTs;
    }

    public void setCreatedTs(Date createdTs) {
        this.createdTs = createdTs;
    }

    public Date getLastUpdTs() {
        return lastUpdTs;
    }

    public void setLastUpdTs(Date lastUpdTs) {
        this.lastUpdTs = lastUpdTs;
    }
	
}